xen.git
19 years ago[IA64] Fix get_page_type() and put_page_type()
awilliam@xenbuild2.aw [Wed, 14 Mar 2007 15:36:14 +0000 (09:36 -0600)]
[IA64] Fix get_page_type() and put_page_type()

type_info is unsigned long = u64

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years ago[IA64] Use domheap instead of xenheap for P2M table
awilliam@xenbuild2.aw [Wed, 14 Mar 2007 15:33:40 +0000 (09:33 -0600)]
[IA64] Use domheap instead of xenheap for P2M table

This allows larger memory configurations without exhausting xenheap.
New boot option 'p2m_xenheap' reverts to previous behavior.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 16:07:08 +0000 (10:07 -0600)]
merge with xen-unstable.hg

19 years ago[IA64][MINIOS] cleanup ia64_boot_paramP and add ARCH_LDFLAGS
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 15:43:48 +0000 (09:43 -0600)]
[IA64][MINIOS] cleanup ia64_boot_paramP and add ARCH_LDFLAGS

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years ago[IA64] PV steal time accounting
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 15:39:59 +0000 (09:39 -0600)]
[IA64] PV steal time accounting

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
19 years ago[IA64] Follow dynamic grant_table for PV-on-HVM on IPF
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 14:43:56 +0000 (08:43 -0600)]
[IA64] Follow dynamic grant_table for PV-on-HVM on IPF

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[IA64] Fix return value of hypercall from VT-i domain
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 14:42:11 +0000 (08:42 -0600)]
[IA64] Fix return value of hypercall from VT-i domain

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[IA64] Fix for compiling PV-on-HVM driver on IPF
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 14:40:57 +0000 (08:40 -0600)]
[IA64] Fix for compiling PV-on-HVM driver on IPF

Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoFix typo in cset 14341:0affe03ee985 that broke migration.
Ewan Mellor [Sun, 11 Mar 2007 22:42:22 +0000 (22:42 +0000)]
Fix typo in cset 14341:0affe03ee985 that broke migration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded an VM_HVM_REQUIRED error code, and use it on VM.start.
Ewan Mellor [Sat, 10 Mar 2007 23:22:00 +0000 (23:22 +0000)]
Added an VM_HVM_REQUIRED error code, and use it on VM.start.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReplace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
Ewan Mellor [Sat, 10 Mar 2007 21:48:22 +0000 (21:48 +0000)]
Replace VM.platform_{std_VGA,serial,localtime,clock_offset,enable_audio} with
a single VM.platform String -> String Map.

Propogate this change through to XendDomainInfo and image so that the
backwards compatibility is handled by XendConfig.

Make PCI_bus a read-write field.

Added C bindings for these changes also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove obsolete tpm_backend entry.
Ewan Mellor [Sat, 10 Mar 2007 21:43:07 +0000 (21:43 +0000)]
Remove obsolete tpm_backend entry.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix VM.set_actions_after_{reboot,shutdown}.
Ewan Mellor [Sat, 10 Mar 2007 21:41:58 +0000 (21:41 +0000)]
Fix VM.set_actions_after_{reboot,shutdown}.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix "no such domain" error message from domain_lookup.
Ewan Mellor [Sat, 10 Mar 2007 20:20:24 +0000 (20:20 +0000)]
Fix "no such domain" error message from domain_lookup.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove some excessive debug logging.
Ewan Mellor [Sat, 10 Mar 2007 20:18:17 +0000 (20:18 +0000)]
Remove some excessive debug logging.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDon't show the usage message for "domain does not exist" errors.
Ewan Mellor [Sat, 10 Mar 2007 19:57:35 +0000 (19:57 +0000)]
Don't show the usage message for "domain does not exist" errors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImprove xm shell tab completion.
Ewan Mellor [Sat, 10 Mar 2007 16:38:18 +0000 (16:38 +0000)]
Improve xm shell tab completion.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd vcpus_max and vcpus_at_startup values to the example VM creation.
Ewan Mellor [Sat, 10 Mar 2007 14:57:11 +0000 (14:57 +0000)]
Add vcpus_max and vcpus_at_startup values to the example VM creation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix get_val_as_string so that it does not truncate integers.
Ewan Mellor [Sat, 10 Mar 2007 14:41:06 +0000 (14:41 +0000)]
Fix get_val_as_string so that it does not truncate integers.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllow empty structs to represent empty Maps.
Ewan Mellor [Sat, 10 Mar 2007 14:16:52 +0000 (14:16 +0000)]
Allow empty structs to represent empty Maps.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoxen ppc: Guests need the default 100Hz ticker.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 17:38:54 +0000 (17:38 +0000)]
xen ppc: Guests need the default 100Hz ticker.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agopci back: Various fixes.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 17:01:21 +0000 (17:01 +0000)]
pci back: Various fixes.

- remove superfluous call to pciback_field_is_dup()
- fix a variable type mismatch in pciback_field_is_dup()
- make readability improvements by using the OFFSET macro
- revises quirk data output via the sysfs quirks node so that
- displayed offset information includes base_offset.

Thanks to Jambunathan K. for giving such specific bug diagnosis.

Signed-off-by: Chris Bookholt <hap10@tycho.ncsc.mil>
19 years agoSimple fix to the man page for xm block-attach.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:59:57 +0000 (16:59 +0000)]
Simple fix to the man page for xm block-attach.

It currently says to use "ro" or "rw" for the mode, when it seems,
empirically, to take "r" or "w" for the mode, respectively.  Update
the man page to reflect that.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
19 years agoAdd flags field to VCPUOP_set_singlsehot_timer.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:58:11 +0000 (16:58 +0000)]
Add flags field to VCPUOP_set_singlsehot_timer.
Flag 'future' causes Xen to check if the timeout is in the past and
return -ETIME if so.
From: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Fix VCPUOP_set_periodic_timer return value.
kfraser@localhost.localdomain [Sat, 10 Mar 2007 16:22:52 +0000 (16:22 +0000)]
xen: Fix VCPUOP_set_periodic_timer return value.
Clean up vcpu_op() code, and fix a couple of comments.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Use new time hypercalls.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:36:24 +0000 (19:36 +0000)]
linux: Use new time hypercalls.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Debug 'q' key prints per-vcpu periodic timer info.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:34:52 +0000 (19:34 +0000)]
xen: Debug 'q' key prints per-vcpu periodic timer info.
Do not enable periodic timer by default for HVM guests.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: fix build warnings
kfraser@localhost.localdomain [Fri, 9 Mar 2007 19:33:43 +0000 (19:33 +0000)]
linux: fix build warnings
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agodump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:33:36 +0000 (18:33 +0000)]
dump-core: store .xen_p2m or .xen_pfn section in pfn ascending order.
So far the order isn't specified and may be random in theory.
But sorted array is requested by crash utility for efficient search.

Fortunately it is the case except ia64 full virtualized domain.
Update document such that those array must be sorted and fix the ia64
full virtualized domain case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoxen/x86: add allocation success checks.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:32:20 +0000 (18:32 +0000)]
xen/x86: add allocation success checks.

The necessary fix to arch_domain_create() was discovered by Gerd
Hoffmann, but apparently not submitted so far.

Also, adjust two error codes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: fix condition for entering tickless state
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:30:52 +0000 (18:30 +0000)]
linux: fix condition for entering tickless state

I noticed that timer interrupts were running at full rate regardless
of whether the system was idle.
softlockup_get_next_event() must return the maximum of zero and the
delta to the next event, not the minimum (which is always zero or
negative, yielding zero or a very large positive number as return
value).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoxen: New vcpu_op commands for setting periodic and single-shot timers.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:47 +0000 (18:26 +0000)]
xen: New vcpu_op commands for setting periodic and single-shot timers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRevert 14316 -- no need to fix maxvcpu domctl.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 18:26:22 +0000 (18:26 +0000)]
Revert 14316 -- no need to fix maxvcpu domctl.

19 years agoThis patch fixes two problems with sending and receiving of (arrays of)
Ewan Mellor [Fri, 9 Mar 2007 16:04:19 +0000 (16:04 +0000)]
This patch fixes two problems with sending and receiving of (arrays of)
structures.

The first one allows to determine the size of a member when parsing a
'set'.
The cast in the second part fixes the address calculation when
serializing an array.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Fix 14315
Tim Deegan [Fri, 9 Mar 2007 12:28:37 +0000 (12:28 +0000)]
[XEN] Fix 14315
We do need to be able to shadow_enable vcpu-less domains.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Don't let the tools take away all of a domain's vcpus.
Tim Deegan [Fri, 9 Mar 2007 12:16:21 +0000 (12:16 +0000)]
[XEN] Don't let the tools take away all of a domain's vcpus.
Signed-off-by: Weidong Han <weidong.han@intel.com>
19 years ago[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Tim Deegan [Fri, 9 Mar 2007 12:10:29 +0000 (12:10 +0000)]
[XEN] Shadow: be more explicit in assuming that d->vcpu[0] is valid
Signed-off-by: Tim Deegan <Tim.Deegan@xensourc.com>
19 years agoMerge
Tim Deegan [Fri, 9 Mar 2007 11:45:49 +0000 (11:45 +0000)]
Merge

19 years ago[SVM] Don't free HSA and root vmcb when disabling SVM
Tim Deegan [Fri, 9 Mar 2007 11:45:19 +0000 (11:45 +0000)]
[SVM] Don't free HSA and root vmcb when disabling SVM
since we're no longer allowed to free pages in an interrupt context.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Upgrade to latest Xen interface version (0x00030205).
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:44:31 +0000 (11:44 +0000)]
linux: Upgrade to latest Xen interface version (0x00030205).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Fri, 9 Mar 2007 11:14:03 +0000 (11:14 +0000)]
Merge

19 years agoxm: New command 'debug-keys' to inject debug-key events into Xen.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 11:11:59 +0000 (11:11 +0000)]
xm: New command 'debug-keys' to inject debug-key events into Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Revert thinko from 14291
Tim Deegan [Fri, 9 Mar 2007 11:11:23 +0000 (11:11 +0000)]
[HVM] Revert thinko from 14291
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agopci back: Fix registration of of filters on subsections of config space.
kfraser@localhost.localdomain [Fri, 9 Mar 2007 09:21:31 +0000 (09:21 +0000)]
pci back: Fix registration of of filters on subsections of config space.
Found by Jambanuthan K.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMake the VTPM.destroy method return 'void' upon success and adapt the
Ewan Mellor [Fri, 9 Mar 2007 02:32:52 +0000 (02:32 +0000)]
Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoImprove error message.
Ewan Mellor [Fri, 9 Mar 2007 01:59:59 +0000 (01:59 +0000)]
Improve error message.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
19 years agoRemove VDI.set_SR -- this was always unimplemented, and pretty mad.
Ewan Mellor [Fri, 9 Mar 2007 01:25:43 +0000 (01:25 +0000)]
Remove VDI.set_SR -- this was always unimplemented, and pretty mad.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFancy headings.
Ewan Mellor [Fri, 9 Mar 2007 01:15:07 +0000 (01:15 +0000)]
Fancy headings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the booting description out of the VM class description into the VM
Ewan Mellor [Fri, 9 Mar 2007 01:06:11 +0000 (01:06 +0000)]
Move the booting description out of the VM class description into the VM
Lifecycle section of the doc.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the word "Additional" from all the RPC subheadings -- we include all
Ewan Mellor [Fri, 9 Mar 2007 00:46:50 +0000 (00:46 +0000)]
Remove the word "Additional" from all the RPC subheadings -- we include all
the methods now, not just the non-accessors.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded section on references vs UUIDs.
Ewan Mellor [Fri, 9 Mar 2007 00:44:10 +0000 (00:44 +0000)]
Added section on references vs UUIDs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoChanged the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
Ewan Mellor [Fri, 9 Mar 2007 00:35:29 +0000 (00:35 +0000)]
Changed the example of linked references (Set(Ref(x)) <-> Ref(y)) to use VM and
VIFs rather than VM and VMGroups, now that we've deleted VMGroups.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded {VIF,VBD}.{plug,unplug} methods. Docs and C bindings -- Xend to follow.
Ewan Mellor [Thu, 8 Mar 2007 23:47:24 +0000 (23:47 +0000)]
Added {VIF,VBD}.{plug,unplug} methods.  Docs and C bindings -- Xend to follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded VM_BAD_POWER_STATE error code to VM.hard_shutdown.
Ewan Mellor [Thu, 8 Mar 2007 23:22:56 +0000 (23:22 +0000)]
Added VM_BAD_POWER_STATE error code to VM.hard_shutdown.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove crashdump.create -- this doesn't make sense.
Ewan Mellor [Thu, 8 Mar 2007 23:16:34 +0000 (23:16 +0000)]
Remove crashdump.create -- this doesn't make sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix duplicate consts around xc_error declarations.
Ewan Mellor [Thu, 8 Mar 2007 22:33:47 +0000 (22:33 +0000)]
Fix duplicate consts around xc_error declarations.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[IA64] Add HYPERVISOR_vcpu_op
awilliam@xenbuild2.aw [Thu, 8 Mar 2007 16:50:25 +0000 (09:50 -0700)]
[IA64] Add HYPERVISOR_vcpu_op

For support of steal time accounting, only supports
VCPUOP_register_runstate_memory_area right now.

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
19 years agoMerge
Tim Deegan [Thu, 8 Mar 2007 16:41:32 +0000 (16:41 +0000)]
Merge

19 years ago[HVM] Save/restore: tidy PFN handling in the tools.
Tim Deegan [Thu, 8 Mar 2007 16:40:35 +0000 (16:40 +0000)]
[HVM] Save/restore: tidy PFN handling in the tools.
Make the differences clearer between the number of frames, the max PFN
and the size of the pfn array, and handle te framebuffer more cleanly.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
Tim Deegan [Thu, 8 Mar 2007 16:38:15 +0000 (16:38 +0000)]
[HVM] Save/restore: make sure all ioreqs are gone when a domain is saved
by pausing the domain and pulling them through.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Remove an unused data structure from TPM frontend.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 16:26:17 +0000 (16:26 +0000)]
linux: Remove an unused data structure from TPM frontend.
Some more code style changes.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Shadow: fix mark_dirty invocation to use gfn, not mfn
Tim Deegan [Thu, 8 Mar 2007 16:20:01 +0000 (16:20 +0000)]
[XEN] Shadow: fix mark_dirty invocation to use gfn, not mfn
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Shadow: tidy up page_info before handing back to the allocator
Tim Deegan [Thu, 8 Mar 2007 16:18:50 +0000 (16:18 +0000)]
[XEN] Shadow: tidy up page_info before handing back to the allocator
which expects count_info fields to be zero.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[xen] Update the hvm rtc clock state if the domain's time offset is changed.
Christian Limpach [Thu, 8 Mar 2007 15:51:32 +0000 (15:51 +0000)]
[xen] Update the hvm rtc clock state if the domain's time offset is changed.
The settimeoffset domctl had no effect on hvm domains since the offset
was only read in rtc_init which is done when the domain is created.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[BUILDER]: Initialize code segment selectors in virtual IDT to 0.
Ian Campbell [Thu, 8 Mar 2007 15:35:28 +0000 (15:35 +0000)]
[BUILDER]: Initialize code segment selectors in virtual IDT to 0.
These should not be set until the guest kernel kernel configures an
entry point otherwise the null_trap_bounce() check gets confused.

This change was made to the old domain builder in 12455:3fa6635d04b9
but was lost in the transition to the new builder.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoxen: Provide notification of console updates via VIRQ.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 15:21:10 +0000 (15:21 +0000)]
xen: Provide notification of console updates via VIRQ.

The readconsolering capabilities provide the opportunity to
provide console output to other clients (remote systems,
logging systems, etc). This patchs adds the ability to generate
a notification of a change in the console buffer.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: Platform feature 'multiprocessor suspend' is x86-only for now.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 14:57:33 +0000 (14:57 +0000)]
xend: Platform feature 'multiprocessor suspend' is x86-only for now.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Save/restore: back-port IDE controller save routine from current qemu.
Tim Deegan [Thu, 8 Mar 2007 14:37:21 +0000 (14:37 +0000)]
[HVM] Save/restore: back-port IDE controller save routine from current qemu.
Also, send an interrupt and an error code to the guest on restore if we
dropped an active request when we saved.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Clean up heap allocator.
kfraser@localhost.localdomain [Thu, 8 Mar 2007 14:29:09 +0000 (14:29 +0000)]
xen: Clean up heap allocator.
Move some common free/alloc code into core heap-allocator
functions. Make it clear that alloc/free can only ever be done outside
hardirq context (previously it was unsafe: could deadlock on heap_lock).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Add support for hardware-assisted paging
Tim Deegan [Thu, 8 Mar 2007 10:54:56 +0000 (10:54 +0000)]
[HVM] Add support for hardware-assisted paging
as the second implementation of the generic paging-assistance interface.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
19 years ago[IA64] Steal time accounting for PV domain - hypervisor side
awilliam@xenbuild2.aw [Wed, 7 Mar 2007 20:16:07 +0000 (13:16 -0700)]
[IA64] Steal time accounting for PV domain - hypervisor side

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
19 years ago[IA64] Add arch/ia64/kernel/time.c to spare tree for steal time accounting
awilliam@xenbuild2.aw [Wed, 7 Mar 2007 19:45:08 +0000 (12:45 -0700)]
[IA64] Add arch/ia64/kernel/time.c to spare tree for steal time accounting

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
19 years ago[IA64] Xen/ia64 XENMEM_exchange bug work around
awilliam@xenbuild2.aw [Wed, 7 Mar 2007 19:42:32 +0000 (12:42 -0700)]
[IA64] Xen/ia64 XENMEM_exchange bug work around

xen-unstable.hg c/s 13366:ed73ff8440d8 revealed that
XENMEM_exchange has been broken on Xen/ia64.
This is work around for it until the right fix.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Wed, 7 Mar 2007 19:38:28 +0000 (12:38 -0700)]
merge with xen-unstable.hg

19 years agolinux: Restore time on APs if they are not hotplugged on save/restore.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:21:21 +0000 (16:21 +0000)]
linux: Restore time on APs if they are not hotplugged on save/restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agonetback: Disable debug interrupt (accidentally left enabled in
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:16:09 +0000 (16:16 +0000)]
netback: Disable debug interrupt (accidentally left enabled in
previous checkin).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Use fake carrier flag for netfront/netback rather than the real
kfraser@localhost.localdomain [Wed, 7 Mar 2007 16:00:47 +0000 (16:00 +0000)]
linux: Use fake carrier flag for netfront/netback rather than the real
netif_carrier_XXX() functions. This makes network bringup much faster.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Disallow soft resets in the BIOS.
Tim Deegan [Wed, 7 Mar 2007 13:07:12 +0000 (13:07 +0000)]
[HVM] Disallow soft resets in the BIOS.
They aren't safe if the guest has brought up PV device drivers.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoxen: Replace stupid page_alloc fix.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 11:17:03 +0000 (11:17 +0000)]
xen: Replace stupid page_alloc fix.

I broke the 'correct' fix when I copied it out of an email. The
actual correct version, with an extra +1 in the for-loop header is
rather abusive of for loops, so I've changed it now to a do-while loop
and an extra comment so I don't screw up this backwards loop ever
again.

This version does actually boot. :-)

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agodump-core: always use elfclass64 format to support x86_32pae.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:53:34 +0000 (10:53 +0000)]
dump-core: always use elfclass64 format to support x86_32pae.
Without this patch xen dump-core format can't handle over 4GB case.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agotools: Clean up use of 'install' command.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:49:20 +0000 (10:49 +0000)]
tools: Clean up use of 'install' command.

- convert raw "install" command to use $(INSTALL)
- convert some $(INSTALL) to $(INSTALL_DATA) as appropriate
- modify the specific $(INSTALL) definitions to use -p.

Original patch by Ben Thomas <ben@virtualiron.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoioemu: Remove use of 'echo -c' in script.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:37:05 +0000 (10:37 +0000)]
ioemu: Remove use of 'echo -c' in script.

I've no idea what it does, and it doesn't appear to be valid on some
systems.  Use a more generic approach.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years agolinux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
kfraser@localhost.localdomain [Wed, 7 Mar 2007 10:13:39 +0000 (10:13 +0000)]
linux: Don't use set_fixmap/clear_fixmap after boot-time. It's not
allowed and the functions are marked __init on x86/64.
Use HYPERVISOR_update_va_mapping() directly instead.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoA correct fix for page_alloc crash when Xen heap empty.
kfraser@localhost.localdomain [Wed, 7 Mar 2007 09:43:36 +0000 (09:43 +0000)]
A correct fix for page_alloc crash when Xen heap empty.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoioemu: Close file descriptors when forking processes.
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:51:42 +0000 (16:51 +0000)]
ioemu: Close file descriptors when forking processes.
Just leave stdin/stdout/stderr (and possibly tap fd) open.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoMake Python tools (i.e., xend and pygrub) conditionally compiled.
kfraser@localhost.localdomain [Tue, 6 Mar 2007 16:46:20 +0000 (16:46 +0000)]
Make Python tools (i.e., xend and pygrub) conditionally compiled.

Config option is PYTHON_TOOLS, default is 'y'.

Signed-off-by: Ben Thomas <ben@virtualiron.com>
19 years ago[XEN] Shadow: ignore shadow operations on dying domains
Tim Deegan [Tue, 6 Mar 2007 15:02:20 +0000 (15:02 +0000)]
[XEN] Shadow: ignore shadow operations on dying domains
so that they don't get confused by the way that shadow_teardown()
leaves some of the mode bits set after releasing the shadow resources.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux x86/64: No need to pre-allocate all fixmap pagetables:
kfraser@localhost.localdomain [Tue, 6 Mar 2007 13:41:05 +0000 (13:41 +0000)]
linux x86/64: No need to pre-allocate all fixmap pagetables:
just those for bt_ioremap().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxend: more flexibility in gathering data from /proc/cpuinfo
kfraser@localhost.localdomain [Tue, 6 Mar 2007 11:53:37 +0000 (11:53 +0000)]
xend: more flexibility in gathering data from /proc/cpuinfo

Add ia64 mapping for cpuinfo data and make the case where #vcpu !=
#pcpu more flexible (don't rely on cpu0 existing).

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[SVM] Clear VMCB's EFER.LME when guest disables paging
Travis Betak [Mon, 5 Mar 2007 22:22:21 +0000 (16:22 -0600)]
[SVM] Clear VMCB's EFER.LME when guest disables paging

Since the guest's CR0.PG is always set (in shadow paging), EFER.LME must
be cleared along with EFER.LMA when the guest is disabling paging.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode
Travis Betak [Mon, 5 Mar 2007 22:21:50 +0000 (16:21 -0600)]
[SVM] Use svm_long_mode_enabled() when checking if guest is in long mode

This patch fixes the inconsistent method of checking if the guest is in
long mode (EFER.LMA == 1).

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Cleanup guest writes to EFER
Travis Betak [Mon, 5 Mar 2007 22:21:11 +0000 (16:21 -0600)]
[SVM] Cleanup guest writes to EFER

19 years ago[SVM] Return the shadow EFER value on guest EFER reads.
Travis Betak [Mon, 5 Mar 2007 22:18:10 +0000 (16:18 -0600)]
[SVM] Return the shadow EFER value on guest EFER reads.

Return the shadow of the guest's EFER instead of the VMCB.  This helps
with things such as the unlikely event the guest wants to check EFER.LME
immediately after setting it (The VMCB's EFER.LME remains clear until
the guest enables paging).

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.
Travis Betak [Mon, 5 Mar 2007 22:17:25 +0000 (16:17 -0600)]
[SVM] Remove SVM cpu_state and add EFER shadow to svm structure.

The SVM cpu state was being used inconsistently and, besides, it makes
more sense to instead rely on the guest's shadow registers to determine
the current guest state.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).
Christian Limpach [Mon, 5 Mar 2007 22:42:13 +0000 (22:42 +0000)]
[tools] Import ptsname from its new location (after cset 14259:7f0d8e3c538e).

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[tools] Use auxbin.py to determine libpath at build time.
Christian Limpach [Mon, 5 Mar 2007 19:22:21 +0000 (19:22 +0000)]
[tools] Use auxbin.py to determine libpath at build time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoInstall pygrub according to auxbin rules.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 19:01:19 +0000 (19:01 +0000)]
Install pygrub according to auxbin rules.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMove ptsname module under tools/python.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 18:54:26 +0000 (18:54 +0000)]
Move ptsname module under tools/python.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux x86/64: Clean up mm initialisation a little.
kfraser@localhost.localdomain [Mon, 5 Mar 2007 18:10:41 +0000 (18:10 +0000)]
linux x86/64: Clean up mm initialisation a little.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[tools] Use auxbin.py to determine libpath at build time.
Christian Limpach [Mon, 5 Mar 2007 16:43:12 +0000 (16:43 +0000)]
[tools] Use auxbin.py to determine libpath at build time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>